package com.team1.supervend.domain;
//until we hook up to a "real" cc vendor these will just return themselves
public class AmexCreditPaymentAuthorizationAdapter implements
		IPaymentAuthorizationServiceAdapter {
	AmexCreditPaymentAuthorizationAdapter(){
		System.out.println("Amex Adapter Ready For Service");
	}

	
	public Boolean preValidatePayment() {
		Boolean valid = true;
		
		System.out.println("Amex Credit Processed!");

		return valid;

	}

	
	public Boolean login(String user) {
		Boolean success = true;
		
		return success;
	}


	public Boolean postSale(float total) {
		Boolean transactionComp = false;
		if (total >= 0.0f){
			transactionComp = true;
		}
		return transactionComp;

	}

}
